package com.nurt.service;

import com.nurt.entity.OrderDishEntity;
import com.nurt.entity.OrderEntity;

import java.util.List;

public interface OrderService {

    List<OrderEntity> getOrders(int userId);
    List<OrderEntity> getOrdersByStatus(int userId, int status);
    int createOrder(OrderEntity order);
    void updateOrderStatus(int orderId, int status);
    
    int updateCart(int orderId, int dishId, int quantity);
    int addToCart(int orderId, int dishId);
    void removeFromCart(int orderId, int dishId);
    List<OrderDishEntity> getCartContents(int orderId);
    void clearCart(int orderId);
    void placeOrder(OrderEntity order);
}
